package com.blb.service.impl;

import com.blb.entity.BrandType;
import com.blb.mapper.BrandTypeMapper;
import com.blb.service.IBrandTypeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wuzhuo
 * @since 2019-07-11
 */
@Service
public class BrandTypeServiceImpl extends ServiceImpl<BrandTypeMapper, BrandType> implements IBrandTypeService {

	@Autowired
	public BrandTypeMapper brandTypeMapper;
	@Override
	public List<BrandType> getBrandTypeByBrand(String brandid) {
		List<BrandType> selectList = brandTypeMapper.selectList(new QueryWrapper<BrandType>().eq("brand_id", brandid));
		return selectList;
	}

}
